// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * LoanNowBalance
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "loan_now_balance", autoResultMap = true)
@Schema(title = "货款现结")
public class LoanNowBalance implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 供应商
   */
  @TableField(value = "`supplier_name`")
  @JoinField(Supplier.class)
  @Schema(title = "供应商")
  private Long supplierName;

  /**
   * 采购单号
   */
  @TableField(value = "`purchase_order_code`")
  @Schema(title = "采购单号")
  private String purchaseOrderCode;

  /**
   * 采购方
   */
  @TableField(value = "`application_dep`")
  @JoinField(SysDepartment.class)
  @Schema(title = "采购方")
  private Long applicationDep;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 状态
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 结算描述
   */
  @TableField(value = "`describe`")
  @Schema(title = "结算描述")
  private String describe;

  /**
   * 预付比例
   */
  @TableField(value = "`budget_ratio`")
  @Schema(title = "预付比例")
  private java.math.BigDecimal budgetRatio;

  /**
   * 预计付款时间
   */
  @TableField(value = "`predict_fk_time`")
  @Schema(title = "预计付款时间")
  private java.util.Date predictFkTime;

  /**
   * 支付方式
   */
  @TableField(value = "`pay_type`")
  @Schema(title = "支付方式")
  private String payType;

  /**
   * 户名
   */
  @TableField(value = "`user_name`")
  @Schema(title = "户名")
  private String userName;

  /**
   * 开户行
   */
  @TableField(value = "`bank_of_deposit`")
  @Schema(title = "开户行")
  private String bankOfDeposit;

  /**
   * 账号
   */
  @TableField(value = "`account`")
  @Schema(title = "账号")
  private String account;

  /**
   * 付款币种
   */
  @TableField(value = "`currency`")
  @Schema(title = "付款币种")
  private String currency;

  /**
   * 请款维度
   */
  @TableField(value = "`withdraw_dimension`")
  @Schema(title = "请款维度")
  private String withdrawDimension;

  /**
   * 采购量
   */
  @TableField(value = "`purchase_quantity`")
  @Schema(title = "采购量")
  private Integer purchaseQuantity;

  /**
   * 到货量
   */
  @TableField(value = "`quantity_received`")
  @Schema(title = "到货量")
  private Integer quantityReceived;

  /**
   * 采购金额
   */
  @TableField(value = "`purchase_money`")
  @Schema(title = "采购金额")
  private java.math.BigDecimal purchaseMoney;

  /**
   * 到货金额
   */
  @TableField(value = "`aog_money`")
  @Schema(title = "到货金额")
  private java.math.BigDecimal aogMoney;

  /**
   * 应付金额
   */
  @TableField(value = "`amount_payable`")
  @Schema(title = "应付金额")
  private java.math.BigDecimal amountPayable;

  /**
   * 退货金额
   */
  @TableField(value = "`sales_return_money`")
  @Schema(title = "退货金额")
  private java.math.BigDecimal salesReturnMoney;

  /**
   * 实付金额
   */
  @TableField(value = "`actually_paid`")
  @Schema(title = "实付金额")
  private java.math.BigDecimal actuallyPaid;

  /**
   * 未付金额
   */
  @TableField(value = "`unpaid_money`")
  @Schema(title = "未付金额")
  private java.math.BigDecimal unpaidMoney;

  /**
   * 申请中
   */
  @TableField(value = "`in_application`")
  @Schema(title = "申请中")
  private java.math.BigDecimal inApplication;

  /**
   * 未申请
   */
  @TableField(value = "`not_apply`")
  @Schema(title = "未申请")
  private java.math.BigDecimal notApply;

  /**
   * 折扣金额
   */
  @TableField(value = "`discount_amount`")
  @Schema(title = "折扣金额")
  private java.math.BigDecimal discountAmount;

  /**
   * 采购员
   */
  @TableField(value = "`opt_uid`")
  @JoinField(SysUser.class)
  @Schema(title = "采购员")
  private Long optUid;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 附件
   */
  @TableField(value = "`files`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "附件")
  private List<SysFile> files;

  /**
   * 目标表ID列
   */
  @TableField(value = "`purchase_order_id`")
  @Schema(title = "目标表ID列")
  private String purchaseOrderId;

  /**
   * 货值
   */
  @TableField(value = "`goods_price`")
  @Schema(title = "货值")
  private java.math.BigDecimal goodsPrice;

  /**
   * 运费
   */
  @TableField(value = "`shipping_price`")
  @Schema(title = "运费")
  private java.math.BigDecimal shippingPrice;

  /**
   * 其他费用
   */
  @TableField(value = "`other_currency`")
  @Schema(title = "其他费用")
  private java.math.BigDecimal otherCurrency;
}
